import * as React from 'react';
import { View, Text, navigateTo } from 'remax/wechat';
import GoodsAction from '@vant/weapp/dist/goods-action';
import GoodsActionIcon from '@vant/weapp/dist/goods-action-icon';
import GoodsActionButton from '@vant/weapp/dist/goods-action-button';

export default () => {
  return (
    <View>
      <Text>cart</Text>
      <View>
        <GoodsAction>
          <GoodsActionIcon
            icon="chat-o"
            text="客服"
            bindclick={() => navigateTo({ url: '/pages/main/search/index', zh: 'search' })}
          />
          <GoodsActionIcon icon="cart-o" text="购物车" info="5" />
          <GoodsActionButton>加入购物车</GoodsActionButton>
          <GoodsActionButton>立即购买</GoodsActionButton>
        </GoodsAction>
      </View>
    </View>
  );
};
